package com.myastro.opengles;

import android.os.Bundle;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.myastro.R;
import com.myastro.main.GLSurfaceManager;
import com.myastro.main.ListMainActivity;




public class DemoActivity extends ListMainActivity {

	private LinearLayout parent = null;
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		
//        mGLView = new GLSurfaceManager(this);
	}

    @Override
    protected void onPause() {
        super.onPause();
//        mGLView.onPause();
    }

    @Override
    protected void onResume() {
        super.onResume();
//        mGLView.onResume();
    }

	
    protected void doUpdateList() {
	
		/* make the title text */
//		makeTitle("OpenGL.ES.DEMO");
//		
//		addListItem("NeHe.ES.Lesson", NeHeLesson.class);
//		addListItem("IPhone3D.Programming", IPhone3D_Programming.class);
//		addListItem("IPhone3D.Programming", IPhone3D_Programming.class);
//		addListItem("IPhone3D.Programming", IPhone3D_Programming.class);
//		addListItem("IPhone3D.Programming", IPhone3D_Programming.class);
//		addListItem("IPhone3D.Programming", IPhone3D_Programming.class);
//		addListItem("IPhone3D.Programming", IPhone3D_Programming.class);
//		addListItem("IPhone3D.Programming", IPhone3D_Programming.class);
		
//		ListItem item1 = new ListItem();
//		ListItem item2 = new ListItem();
//		ListItem item3 = new ListItem();
//		ListItem item4 = new ListItem();
//		
//		item1.strTitleName = "Digital Compass";
//		item1.strSecondName = "Accel,Magn,Gyro";
//		_adapter.add(item1);
//		item2.strTitleName = "BlueGps";
//		item2.strSecondName = "ExternalGps";
//		_adapter.add(item2);
//		item3.strTitleName = "NeHe.ES.Lesson";
//		item3.strSecondName = "OpenGL.ES";
//		_adapter.add(item3);
//		item4.strTitleName = "IPhone3D.Programming";
//		item4.strSecondName = "OpenGL.ES";
//		_adapter.add(item4);
    	
    	
    	makeTitle("Demo App");
		
//		addListItem("Digital Compass", "Accel,Magn,Gyro", NeHeLesson.class, 0);
//		addListItem("BlueGps", "ExternalGps", IPhone3D_Programming.class, 0);
		addListItem("NeHe.ES.Lesson", "OpenGL.ES", NeHeLesson.class, 0);
		addListItem("IPhone3D.Programming", "OpenGL.ES", IPhone3D_Programming.class, 0);

		
	}
	

	
	// ----------------------
	
//	
//    static {
//    	final String LIB_NAME = "native.renderer";
//		//Log.i(TAG, "loading JNI lib using absolute path");
//        System.loadLibrary(LIB_NAME);
//    }
//    
//    
//    
//    // member variables
//    private GLSurfaceManager mGLView;

}
